package edu.cornell.cubooks.dao;

import java.util.Set;

import edu.cornell.cubooks.domain.Feedback;
import edu.cornell.cubooks.domain.Posting;
import edu.cornell.cubooks.domain.User;

/**
 * Data Access Object interface for feedback.
 * 
 * @author CUBooks Team
 */
public interface FeedbackDao extends GenericDao<Feedback, Integer> {
	
	/**
	 * Loads feedbacks for given posting.
	 * 
	 * @param posting
	 * @return List of {@link Feedback}.
	 */
	public Set<Feedback> getFeedbacksForPosting(Posting posting);
	
	/**
	 * Loads feedbacks for given seller.
	 * 
	 * @param posting
	 * @return List of {@link Feedback}.
	 */
	public Set<Feedback> getFeedbacksForSeller(User seller);
}
